/**
 * Copyright (C) 2025 pony working team
 * SPDX-License-Identifier: MulanPSL-2.0
 */

/* includes (local) ----------------------------------------------------------*/
#include <fatfs_mtd.h>
/* includes (standard library, system) ---------------------------------------*/
#include <stdio.h>
/* includes (other library) --------------------------------------------------*/
/* includes (project) --------------------------------------------------------*/
#include <x_module.h>

/* defines -------------------------------------------------------------------*/
/* typedefs ------------------------------------------------------------------*/
/* macro ---------------------------------------------------------------------*/
/* variables (extern) --------------------------------------------------------*/
/* variables (local) ---------------------------------------------------------*/
/* variables (global) --------------------------------------------------------*/
/* inlines -------------------------------------------------------------------*/
/* functions -----------------------------------------------------------------*/

static int fatfs_mmc_init(void)
{
    int ret;

    if ((ret = fatfs_mtd_init("emmc1", "/fatfs/")) < 0) {
        return ret;
    }

    return 0;
}

MODULE_INIT(postdriver, fatfs_mmc_init);
